package com.vict.framework.pay.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vict.framework.fastjsonserializer.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.sql.Timestamp;

@Data
@TableName("pay_back")
public class PayBack {

    @ApiModelProperty(value="payBackDtoId")
    @TableId("pay_back_dto_id")
    private String payBackDtoId;

    @ApiModelProperty(value="payDtoId")
    @TableField("pay_dto_id")
    private String payDtoId;

    @TableField("start_time")
    @ApiModelProperty(value="创建时间")
    @JSONField(serializeUsing = TimestampSerializer.class, deserializeUsing = TimestampDeserializer.class)
    private Timestamp startTime;

    @TableField("back_money")
    @ApiModelProperty(value="退款金额")
    @JSONField(serializeUsing = DecimalSerializer.class, deserializeUsing = DecimalDeserializer.class)
    private BigDecimal backMoney;

    @TableField("back_time")
    @ApiModelProperty(value="退款成功时间")
    @JSONField(serializeUsing = TimestampSerializer.class, deserializeUsing = TimestampDeserializer.class)
    private Timestamp backTime;
}
